<?php
    header("content-type:text/html;charset=utf8");
    session_start();
    if(empty($_SESSION["user"]) or  empty($_SESSION["ischeked"])){
        echo"<script>alert('请不要非法访问我的网站！');window.location.href='login.html'</script>";
        exit;
    }
?>